(define-public python-pgspecial
  (package
    (name "python-pgspecial")
    (version "1.11.10")
    (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pgspecial" version))
        (sha256
          (base32
            "1jrq6bhzwvz6db8ays8zff15hbk1iazs2qxrzvrnlkgxxjkp8p7n"))))
    (build-system python-build-system)
    (propagated-inputs
      `(("python-click" ,python-click)
        ("python-psycopg2" ,python-psycopg2)
        ("python-sqlparse" ,python-sqlparse)))
    (home-page "https://www.dbcli.com")
    (synopsis
      "Meta-commands handler for Postgres Database.")
    (description
      "Meta-commands handler for Postgres Database.")
    (license #f)))

(define-public python-pgcli
  (package
    (name "python-pgcli")
    (version "3.0.0")
    (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pgcli" version))
        (sha256
          (base32
            "10j01bd031fys1vcihibsi5rrfd8w1kgahpcsbk4l07871c24829"))))
    (build-system python-build-system)
    (propagated-inputs
      `(("python-cli-helpers" ,python-cli-helpers)
        ("python-click" ,python-click)
        ("python-configobj" ,python-configobj)
        ("python-humanize" ,python-humanize)
        ("python-pgspecial" ,python-pgspecial)
        ("python-prompt-toolkit" ,python-prompt-toolkit)
        ("python-psycopg2" ,python-psycopg2)
        ("python-pygments" ,python-pygments)
        ("python-setproctitle" ,python-setproctitle)
        ("python-sqlparse" ,python-sqlparse)))
    (home-page "http://pgcli.com")
    (synopsis
      "CLI for Postgres Database. With auto-completion and syntax highlighting.")
    (description
      "CLI for Postgres Database. With auto-completion and syntax highlighting.")
    (license license:bsd-3)))

